package com.ruoyi.law.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.domain.SortBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 新闻
 * </p>
 *
 * @author code
 * @since 2022-12-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "LawNews对象", description = "新闻")
public class LawNews extends SortBaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private Long id;

    @ApiModelProperty(value = "新闻标题")
    private String title;

    @ApiModelProperty(value = "新闻类别id")
    private Long type;

    @ApiModelProperty(value = "新闻简介")
    private String info;

    @ApiModelProperty(value = "封面图片")
    private String pic;

    @ApiModelProperty(value = "添加时间")
    private String addTime;

    @ApiModelProperty(value = "观看人数")
    private Integer num;

    @ApiModelProperty(value = "新闻内容")
    private String content;

    @ApiModelProperty(value = "状态")
    private String state;


}
